﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace EntityFrameworkETL.HelloWorld.Models
{
    public class Person
    {
        public Person()
        {
            Jobs = new HashSet<Job>();
        }

        public Person(string name) : this()
        {
            Name = name;
        }

        public int Id { get; set; }
        [Required]
        public string Name { get; set; }

        public ICollection<Job> Jobs { get; set; }
        public int WorldId { get; set; }
        public World World { get; set; }
    }
}
